/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  height: 100%;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 现代化强制颜色模式支持 (替代废弃的 -ms-high-contrast) */
@media (forced-colors: active) {
  /* 为高对比度模式提供更好的支持 */
  .ant-btn {
    border: 1px solid;
  }
  
  .ant-menu-item {
    border: 1px solid transparent;
  }
  
  .ant-menu-item-selected {
    border: 1px solid;
  }
}

/* 抑制 -ms-high-contrast 相关的废弃警告 */
@supports not (forced-colors: active) {
  /* 为不支持 forced-colors 的旧浏览器提供回退 */
  @media screen and (-ms-high-contrast: active) {
    .ant-btn {
      border: 1px solid;
    }
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ant-layout-sider {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
  }
  
  .ant-layout-content {
    margin-left: 0 !important;
  }
}